package com.ruoyi.shop.mapper;

import java.util.List;
import com.ruoyi.shop.domain.ShopUserOrderItem;

/**
 * 订单明细Mapper接口
 * 
 * @author Alan Zhang
 * @date 2021-09-14
 */
public interface ShopUserOrderItemMapper 
{
    /**
     * 查询订单明细
     * 
     * @param id 订单明细主键
     * @return 订单明细
     */
    public ShopUserOrderItem selectShopUserOrderItemById(Long id);

    /**
     * 查询订单明细列表
     * 
     * @param shopUserOrderItem 订单明细
     * @return 订单明细集合
     */
    public List<ShopUserOrderItem> selectShopUserOrderItemList(ShopUserOrderItem shopUserOrderItem);

    /**
     * 新增订单明细
     * 
     * @param shopUserOrderItem 订单明细
     * @return 结果
     */
    public int insertShopUserOrderItem(ShopUserOrderItem shopUserOrderItem);

    /**
     * 修改订单明细
     * 
     * @param shopUserOrderItem 订单明细
     * @return 结果
     */
    public int updateShopUserOrderItem(ShopUserOrderItem shopUserOrderItem);

    /**
     * 删除订单明细
     * 
     * @param id 订单明细主键
     * @return 结果
     */
    public int deleteShopUserOrderItemById(Long id);

    /**
     * 批量删除订单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopUserOrderItemByIds(String[] ids);

    /**
     * 根据orderId 查询订单明细
     * @param orderId
     * @return
     */
    public List<ShopUserOrderItem> selectShopUserOrderItemByOrderId(Long orderId);
}
